package yxy.cherry.battle.module.record.stream;

import yxy.cherry.battle.Fighter;

/**
 * 狱火
 **/
public class RecordStream_45_HellFire  extends RecordStream {

    private Fighter target;
    //减少的攻击
    long reduceAttack;

    public RecordStream_45_HellFire(Fighter target, long reduceAttack) {
        this.target = target;
        this.reduceAttack = reduceAttack;
    }

    @Override
    protected void _record() {
        sb().append(45);
        sb().append("|");
        sb().append(target.getFighterPosition().code());
        sb().append("|");
        sb().append(reduceAttack);
        sb().append(";");
    }
}
